

<template>
  <el-config-provider :locale="localeI18n">
    <RouterView />
  </el-config-provider>
</template>


<script setup lang="ts">
import { computed, onBeforeMount} from 'vue'
import { useI18n } from 'vue-i18n'
import setIntroduction from '@/core/helpers/setIconfont'

const { messages, locale } = useI18n()
//const route = useRoute()

const localeI18n = computed(() => messages.value[locale.value])

// 设置初始化，防止刷新时恢复默认
onBeforeMount(() => {
  // 设置批量第三方 icon 图标
  setIntroduction.cssCdn()
  // 设置批量第三方 js
  setIntroduction.jsCdn()
})


</script>

<style scoped>

</style>
